﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;

namespace RegionSplittor.Utils
{
	public class FilterMemeryManager
	{
		public static void ReleaseFilers(List<ElementFilter> arFilter)
		{
			if (arFilter.Count < 1)
			{
				return;
			}
			foreach (ElementFilter elementFilter in arFilter)
			{
				elementFilter.Dispose();
			}
			GC.Collect();
		}
	}
}
